<?php defined('_JEXEC') or die('Restricted access'); ?>

<h2 class="componentheading"><?php echo JText::_('COM_BBSDIR_TITLECOMPONENT'); ?></h2>
<div class="get_back_button">
	<a href="index.php?option=com_bbitsd"><?php echo JText::_('COM_BBSDIR_LISTALLCOUNTRIES'); ?></a>
</div>
<div class="sub_heading">
	<img src="<?php echo JURI::base(); ?>administrator/components/com_bbitsd/assets/flags/<?php echo $this->country->flag;?>.png" alt="<?php echo $this->country->title; ?>" /> 
	<span class="title_sub"><?php echo JText::_('COM_BBSDIR_BROWSEBCOMPFROM'); ?> <?php echo $this->country->title; ?></span>
</div>

<div class="countries_container">
	<?php foreach ($this->all_data as $data): ?>

		<h3 class="type_name"><?php echo $data->title; ?></h3>
		<div class="list_countries_by_type">
			<?php foreach ($data->countries as $business): ?>
					<div class="image_list_type">
					<a class="modal" id="popup" rel="{handler: 'iframe', size: {x: 620, y: 420}}" href="index.php?option=com_bbitsd&&view=business&id=<?php echo $business->id; ?>&tmpl=component"> 
						<img src="<?php echo JURI::base(); ?>/administrator/components/com_bbitsd/assets/uploads/<?php echo $business->image; ?>"/>
		            </a>
	                </div>			
			<?php endforeach; ?>
		</div>
		<div class="clear"></div>
		
	<?php endforeach; ?>

</div>